# Write your MySQL query statement below
"""
select
distinct
c.Num as ConsecutiveNums
from
(select a.Id, a.Num from Logs as a join Logs as b on (a.Id + 1) = b.Id and a.Num = b.Num) as c
join
Logs as d
on(c.Id + 2) = d.Id and c.Num = d.Num
"""